package com.mes.cloud.dto;

import com.mes.cloud.util.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
* <bme_bc_sub基础表>
*
* @author  xhy
* @date    2019/05/09 16:00
* @version 1.0
*/
@ApiModel(value = "BmeBcSubDTO", description = "BcSubDTO信息")
@Data
public class BmeBcSubDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号", dataType = "String")
    @ExcelAttribute(name = "编号",column = "A")
    @NotNull
    private String id;
    @ApiModelProperty(value = "启用", dataType = "String")
    @ExcelAttribute(name = "启用",column = "B")
    private Long isEnable;
    /**
     * 状态：0=普通，1=禁用
     */
    @ApiModelProperty(value = "状态：0=普通，1=禁用", dataType = "Long")
    @ExcelAttribute(name = "状态",column = "C")
    private Long status;
    /**
     * 名称
     */@NotNull
    @ApiModelProperty(value = "主BC名称", dataType = "String")
    @ExcelAttribute(name = "主BC名称",column = "D")
    private String name;
    /**
     * 分类
     */
    @ApiModelProperty(value = "分类", dataType = "String")
    @ExcelAttribute(name = "分类",column = "E")
    private String type;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String")
    @ExcelAttribute(name = "备注",column = "F")
    private String ds;
        /**
     * 子BC名称
    */@NotNull
        @ApiModelProperty(value = "子BC名称", dataType = "String")
    @ExcelAttribute(name = "子BC名称",column = "G")
    private String subName;
        /**
     * 主BC字段
    */@NotNull
        @ApiModelProperty(value = "主BC字段", dataType = "String")
    @ExcelAttribute(name = "主BC字段",column = "H")
    private String bcField;
        /**
     * 子BC字段
    */@NotNull
        @ApiModelProperty(value = "子BC字段", dataType = "String")
    @ExcelAttribute(name = "子BC字段",column = "I")
    private String subField;
    /**
     * 父编号
     */
    @ApiModelProperty(value = "父编号", dataType = "String")
    @ExcelAttribute(name = "父编号", column = "G")
    private String pid;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", dataType = "String")
    @ExcelAttribute(name = "创建人", column = "K")
    private String crtby;
    /**
     * 创时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @ExcelAttribute(name = "创建时间", column = "O")
    private Timestamp crtdate;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", dataType = "String")
    @ExcelAttribute(name = "修改人", column = "P")
    private String updby;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", dataType = "Date")
    @ExcelAttribute(name = "修改时间", column = "Q")
    private Timestamp upddate;


    /**
     * 备注
     */
    @ApiModelProperty(value = "主BC信息", dataType = "String")
    @ExcelAttribute(name = "主BC信息",column = "F")
    private String mainBcInfo;
}